import request from '../utils/request.ts'
export default {
    // 注册
    register(data:any){
        return request({
            url:'client/user/register',
            method:'post',
            data
        })
    },
    // 登录
    login(data:any){
        return request({
            url:'client/user/login',
            method:'post',
            data
        })
    },
    // 获取用户详细信息
    getInfo() {
        return request({
            url: 'client/user/getInfo',
            method: 'get'
        })
    },
    logout(){
        return request({
            url:'client/user/logout',
            method:'post'
        })
    }
}
